<script setup>
import MyButton from "./MyButton.vue"
import { ref } from 'vue'

const onClick=()=>{
  console.log(11111);
}
const title=ref("wwerrr")
setTimeout(()=>{
  title.value="11111222333"
},3000)
</script>

<template>
  <MyButton @click="onClick" :title="title" class="lar" />
</template>
<style scoped>
.lar{
  color:greenyellow
}

</style>